package cn.uniqueinfo.dp.service.impl;

import cn.uniqueinfo.dp.mapper.RolePermissionMapper;
import cn.uniqueinfo.dp.service.IRolePermissionService;
import cn.uniqueinfo.dp.service.base.BaseServiceImpl;
import cn.uniqueinfo.dp.vo.RolePermissionVO;
import org.springframework.stereotype.Service;
/**
 * @author:朱元勋
 * @mail:395910063@qq.com
 * @date:2019-02-13 11:14:42
 * @description: 角色权限对应表
 */
@Service
public class RolePermissionServiceImpl extends BaseServiceImpl<RolePermissionVO>
        implements IRolePermissionService {
    private RolePermissionMapper mapper;

    public RolePermissionServiceImpl(RolePermissionMapper mapper) {
        this.mapper = mapper;
        this.baseMapper = mapper;
    }

    @Override
    public Integer deleteByRoleId(Long rid, String formName) {
        return this.mapper.deleteByRoleId(rid, formName);
    }
}
